/**
 * 多文件读取 
 */
const fs = require('fs');

const util = require('util');

const mineReadFile = util.promisify(fs.readFile);

//读取第一个文件
let one = mineReadFile('./resource/1.html');
//读取第二个文件
let two = mineReadFile('./resource/2.html');
//读取第三个文件
let three = mineReadFile('./resource/3.html');

let result = Promise.all([one, two, three]);

result.then(value => {
    console.log(value.join(''));
});